home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
COMM
/
ROBO42_U.ARJ
/
TESTFILE.NEW
< prev
next >
Wrap
Text File
|
1992-07-01
|
975b
|
48 lines
ECHO OFF
CLS
REM TESTFILE.BAT - Robocomm file testing batch file
REM %1 = Filename (Including Path)
REM %2 = Type of file (The file's extension)
rd ROBOTEMP
md ROBOTEMP>nul
cd ROBOTEMP
IF EXIST FILE_ID.DIZ DEL FILE_ID.DIZ
IF EXIST DESC.SDI DEL DESC.SDI
IF %2 == ZIP GOTO UNZIP
IF %2 == LZH GOTO UNLZH
IF %2 == ARC GOTO UNARC
IF %2 == ARJ GOTO UNARJ
GOTO ERROR
:UNZIP
PKUNZIP %1
GOTO DONE
:UNARC
PKUNPAK %1
GOTO DONE
:UNLZH
LHA x %1
GOTO DONE
:UNARJ
ARJ e %1
GOTO DONE
:ERROR
CLS
ECHO %1 IS AN UNKNOWN FILE TYPE
ECHO (You may want to edit your TESTFILE.BAT file)
ECHO Parameter 1 was [%1]
ECHO Parameter 2 was [%2]
ECHO
pause
GOTO END
:DONE
REM Use McAfee's viral scan to test the file for critters
CLS
SCAN *.* /A /nomem
if errorlevel 1 pause
if exist file_id.diz copy file_id.diz %robodir% >nul
if exist desc.sdi copy desc.sdi %robodir% >nul
%COMSPEC%
if exist file_id.diz del file_id.diz
if exist desc.sdi del desc.sdi
:END